package com.ruoyi.user.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.user.mapper.FinanceMapper;
import com.ruoyi.user.domain.Finance;
import com.ruoyi.user.service.IFinanceService;

/**
 * 收款明细Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-26
 */
@Service
public class FinanceServiceImpl implements IFinanceService 
{
    @Autowired
    private FinanceMapper financeMapper;

    /**
     * 查询收款明细
     * 
     * @param financeId 收款明细主键
     * @return 收款明细
     */
    @Override
    public Finance selectFinanceByFinanceId(Long financeId)
    {
        return financeMapper.selectFinanceByFinanceId(financeId);
    }

    /**
     * 查询收款明细列表
     * 
     * @param finance 收款明细
     * @return 收款明细
     */
    @Override
    public List<Finance> selectFinanceList(Finance finance)
    {
        return financeMapper.selectFinanceList(finance);
    }

    /**
     * 新增收款明细
     * 
     * @param finance 收款明细
     * @return 结果
     */
    @Override
    public int insertFinance(Finance finance)
    {
        return financeMapper.insertFinance(finance);
    }

    /**
     * 修改收款明细
     * 
     * @param finance 收款明细
     * @return 结果
     */
    @Override
    public int updateFinance(Finance finance)
    {
        return financeMapper.updateFinance(finance);
    }

    /**
     * 批量删除收款明细
     * 
     * @param financeIds 需要删除的收款明细主键
     * @return 结果
     */
    @Override
    public int deleteFinanceByFinanceIds(Long[] financeIds)
    {
        return financeMapper.deleteFinanceByFinanceIds(financeIds);
    }

    /**
     * 删除收款明细信息
     * 
     * @param financeId 收款明细主键
     * @return 结果
     */
    @Override
    public int deleteFinanceByFinanceId(Long financeId)
    {
        return financeMapper.deleteFinanceByFinanceId(financeId);
    }
}
